import { createStore, applyMiddleware } from 'redux'
// 引入中间件(这个是帮助我们在redux中实现异步操作的中间件)
import thunk from 'redux-thunk'
import reducer from './reducer'
// 告诉redux要使用thunk这个中间件
export default createStore(reducer, applyMiddleware(thunk))
